package com.gsx.service;

import com.gsx.entity.Blog_Type_User;
import com.gsx.entity.Type;

import java.util.List;


public interface TypeService {
    public int saveType(Type type);

    public Type getType(Long id);

    public List<Type> getAllType(int page,int size);

    public int updateType(Type type);

    public int deleteType(Long id);

    public Type getTypeByName(String name);

    public List<Type> getAll();

    public List<Blog_Type_User> getBlog_Type_User(Long type_id);
}
